<%@page import="java.text.MessageFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="t"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles-extras" prefix="tx"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%
	String basePath = MessageFormat.format("{0}://{1}:{2}{3}/",
			request.getScheme(), request.getServerName(),
			String.valueOf(request.getServerPort()),
			request.getContextPath());
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><t:getAsString name="title" /></title>

<link href="<s:theme code='bootstrap'/>" rel="stylesheet">
<script type="text/javascript" src="javascripts/jquery.js"></script>
<script type="text/javascript" src="javascripts/bootstrap.js"></script>

<!--[if lt IE 9]>
<script src="javascripts/html5shiv.min.js"></script>
<script src="javascripts/respond.min.js"></script>
<![endif]-->

</head>
<body>
	<header>
		<t:insertAttribute name="header" />
	</header>
	<div class="container" style="margin-top: 55px;">
		<t:insertAttribute name="body" />
	</div>
	<footer>
		<t:insertAttribute name="footer" />
	</footer>
</body>
</html>